import request from '../utils/request'

// export const jobGet = ()=>{
//   return request.get('/job',{
//     params:{
//       cfytype:1
//     }
//   })
// }

export const jobGet = (condition)=>{ //此处的condition是查询的条件对象
  // condition = {
  //   cfytype:1,
  //   cfyid:'adfasdf'
  // }
  return request.get('/job',{
    params:{
      ...condition,
      _limit:7
    }
  })
}

export const jobJoin = (joinObj)=>{  //岗位报名
  return request.post('/join',joinObj)
}

export const jobJoinGet = ({userId,jobId})=>{  //报名状态请求判断
  return request.get('/join',{
    params:{
      userId,
      jobId
    }
  })
}